# -*- coding: utf-8 -*-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- <base href='${c.base_ref}/'></base> -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

<title>VotaFAM - Admin</title>
${h.stylesheet_link_tag('/css/votafam.css')}
${self.include_local_styles()}
<script type="text/javascript">ajax_url_base = "${h.url_for(controller='ajax',action=None,id=None)}";</script>
${h.javascript_include_tag('/js/json.js','/js/yui/utilities.js','/js/votafam.js','/js/ajax.js')}
${self.include_local_javascript()}
</head>
<body>
<div id="root">
 <div id="header">
 <h1>VotaFAM</h1>
 Sistema de vota&ccedil;&atilde;o do FAM
%if c.alert_message:
<div class="alert-box">${c.alert_message}</div>
%endif
%if c.form_errors:
<div class="field-error-box">
  <ul>
    %for field_error in c.form_errors:
        <li>${c.form_errors[field_error]}</li>
    %endfor
  </ul>
</div>
%endif

 </div>
 <div id="primary-menu">
  <ul>
   <li><a href="${h.url_for(controller='mostras',action='index',id=None)}">Mostras</a></li>
   <li><a href="${h.url_for(controller='candidatos',action='index',id=None)}">Candidatos</a></li>
   <li><a href="${h.url_for(controller='votacao',action='index',id=None)}">Vota&ccedil;&otilde;es</a></li>
   <li><a href="${h.url_for(controller='apuracao',action='index',id=None)}">Apura&ccedil;&atilde;o</a></li>
   <li><a href="${h.url_for(controller='login',action='logout',id=None)}">Sair</a></li>
  </ul>
 </div>
 <div id="content" class="yui-skin-sam">${self.body()}</div>
 <div id="footer"></div>
</div>
</body>
</html>

<%def name="include_local_javascript()"></%def>
<%def name="include_local_styles()"></%def>
